package com.solo.quartz.model.job.log;

import com.solo.quartz.api.entity.QrtzJobLog;
import com.solo.quartz.model.job.log.req.JobLogCreateReq;
import com.solo.quartz.model.job.log.req.JobLogUpdateReq;
import com.solo.quartz.model.job.log.resp.JobLogGetResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 定时任务日志实体转换类
 * @author 十一
 * @since 2024-08-19 15:29
 * 人生若只如初见，何事秋风悲画扇
 **/
@Mapper
public interface QrtzJobLogConvert {

    QrtzJobLogConvert INSTANCE = Mappers.getMapper(QrtzJobLogConvert.class);

    QrtzJobLog convert(JobLogCreateReq bean);

    QrtzJobLog convert(JobLogUpdateReq bean);

    JobLogGetResp convertGet(QrtzJobLog bean);

}
